<template>
  <div class="commonHead">
    <div class="commonHead-left" @click='$router.go(-1)'>
       <van-icon class="iconfont" class-prefix="icon" name="Larrow"></van-icon>
    </div>
    <div class="commonHead-center">
      <img src="../assets/img/logo.png" alt="">
    </div>
    <div class="commonHead-right" @click="enterCates">
       <van-icon class="iconfont" class-prefix="icon" name="mulu" ></van-icon>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    enterCates () {
      this.$router.push('/cates')
    }
  }
}
</script>

<style lang="scss" scoped>
.commonHead{
  height: 50px;
  width: 100%;
  box-sizing: border-box;
  background-color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  padding:0 .3rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  .commonHead-left{
    padding-left: 5px;
  }
  .commonHead-right{
    padding-right: 5px;
  }
  .commonHead-center{
    margin: 0 auto;
    img{
      width: 56px;
    }
  }
}
.icon-Larrow,.icon-mulu{
  font-size: 30px;
  color: #666;
  font-weight: 200;
}
.icon-mulu{
  font-size: 20px;
  color: #666;
}
</style>
